<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class DealModel extends Model
{
    //交易表
    protected $table = 'deal';   //数据表
    protected $pk = 'deal_id';  //主键

    protected $schema=[
        'deal_id' => 'int',
        'deal_idle_item_id' => 'int',
        'deal_from_user_id' => 'int',
        'deal_to_user_id' => 'int',
        'deal_to_user_remark' => 'string',
        'deal_time' => 'datetime',
    ];

    protected $createTime = 'deal_time';
}
